/*
 * @Descripttion:
 * @version:
 * @Author: 周子尧
 * @Date: 2021-02-04 15:40:38
 * @LastEditors: 周子尧
 * @LastEditTime: 2021-02-17 09:33:35
 */
import Vue from 'vue'

import moment from 'moment' // 日期处理库
import '@/styles/index.scss' // 全局样式
import request from '@/utils/request'
import { deepClone, getCookie, setCookie, removeCookie, setLocalStorage, getLocalStorage, removeLocalStorage } from '@/utils'

// 挂载全局组件
import '@/components'

// icon 图标加载
import '@/icons'
// 挂载全局指令

// 挂载全局方法 or 对象,约定以$开头
moment.locale('zh-cn')
Vue.prototype.$moment = moment
Vue.prototype.$request = request
Vue.prototype.$deepClone = deepClone
Vue.prototype.$getCookie = getCookie
Vue.prototype.$setCookie = setCookie
Vue.prototype.$removeCookie = removeCookie
Vue.prototype.$setLocalStorage = setLocalStorage
Vue.prototype.$getLocalStorage = getLocalStorage
Vue.prototype.$removeLocalStorage = removeLocalStorage
